import {Component, Inject} from "@angular/core";
import {APP_CONFIG, AppConfig, APP_DI_CONFIG} from "../config/app-config";
@Component({
  selector: "my-nav",
  templateUrl: "app/template/nav.html",
  providers: [{ provide: APP_CONFIG, useValue: APP_DI_CONFIG }]
})

export class NavComponent {
  title : String;
  constructor(@Inject(APP_CONFIG) config: AppConfig) {
    this.title = config.title;
  }
  brand = "MySite";
  navList = ["Home", "Google", "Taobao", "Facebook"];
  userName = "zzhang";
  dropdownList = ["Settings", "Help", "More"];
}
